#include <string.h>
#include <ulib.h>
#include <stdio.h>
#include <dir.h>

#define printf(...)		fprintf(1,__VA_ARGS__)

int
main(int argc, char ** argv) {
	if (argc != 3) {
		printf("Usage: mount devname format(ffs or sfs)\n");
		return -1;
	}
    if (!strcmp(argv[2], "ffs") && !strcmp(argv[2], "sfs")) {
        printf("Usage: mount devname format(ffs or sfs)\n");
		return -1;
    }

	if (mount(argv[1], argv[2])) {
		printf("mount failed\n");
		return -1;
	}

	return 0;
}
